package com.jrx.anytxn.reporting.mapper.ext;


import com.jrx.anytxn.reporting.entity.TlFreeInterestTable;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface ExtTlFreeInterestTableMapper {

    /**
     * 根据指定日期清空数据
     *
     * @param today
     */
    void deleteByBusinessDate(@Param("today") Date today);

    /**
     * 查询免息成本报表
     * @param statusList
     * @param loanType
     * @return
     */
    List<TlFreeInterestTable> selectFreeInterest(@Param("payOffStatus") List<String> payOffStatus,@Param("statusList") List<String> statusList, @Param("loanType") String loanType, @Param("today") Date today);

    /**
     * 查询today生成免息期成报表数量
     * @param today
     * @return
     */
    int getTotalFreeInterestNum(@Param("today") Date today);
}